package HoneWork1;

public class Test {
    public static void main(String[] args) {
        //创建学生对象
        Student stu = new Student();
            //给对象初始化数据
        stu.setName("张三");
        try {
            stu.setSex("妖");
            stu.setAge(88);
        }catch (SexException e) {
            e.printStackTrace();
            System.out.println("年龄超出规范范围");
        }
    }
}
